package cn.wolfcode.book.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author 李新雨的项目86176
 * @version 1.0
 * @date 2024-11-05 18:43
 */
@WebServlet("/demo")
public class Demo extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//        req.setCharacterEncoding("utf-8");
//        Object user_in_session = req.getSession().getAttribute("USER_IN_SESSION");
//        if(user_in_session==null){
//            resp.sendRedirect("/login.jsp");
//            return;
//        }
        String currentPage = req.getParameter("currentPage");
        String PageSize = req.getParameter("pageSize");
        System.out.println(currentPage);
        System.out.println(PageSize);


    }
}
